{% extends '::base.html.twig' %}

{% block body %}
	{{ parent() }}
	<h1>Upcoming</h1>
	
	<div style="margin: auto">
		<ul style="list-style: none;">
			{% for series in series %}
				{% if oldDate != series.returnDate %}
					{% set oldDate = series.returnDate %}
					<li><h3 style="padding: 10px 0 0 0">{{series.returnDate}}</h3></li>
				{% endif %}
				<li> <a href="{{ path('_seriespage', { 'id': series.id }) }}">{{ series.name }}</a></li>
			{% endfor %}
		</ul>
	</div>
		
 {% endblock %}